Subroutine Callout with Macro Variable


Results 1 to 2 of 2

Thread: Subroutine Callout with Macro Variable

  1. #1
    Registered
    Join Date
    Dec 2005
    Location
    US
    Posts
    7
    Downloads
    0
    Uploads
    0

    Default Subroutine Callout with Macro Variable

    Hey there,

    I have 1 main program and 12 sub programs that i'd like to be able to change a macro variable #V2 to call the sub. I've done this before with my Haas and Fanuc controllers. The Fadal 88 controller is giving me and invalid error. Here is an example:


    This works on the Fadal

    G0 Z.25
    M5 M9
    G9(Decelaration on)
    G0 G28 G91 Z0
    M98 P4530
    G0 G90 X0 Y0 E40
    M30

    This does not

    G0 Z.25
    M5 M9
    G9(Decelaration on)
    G0 G28 G91 Z0
    M98 P#V2
    G0 G90 X0 Y0 E40
    M30

    Ive tried with the P without the P doesn't make a difference.

    What am i missing?

    Thanks in advance.

    Similar Threads:


  2. #2
    Registered
    Join Date
    Mar 2016
    Location
    United States
    Posts
    2
    Downloads
    0
    Uploads
    0

    Default Re: Subroutine Callout with Macro Variable

    I think you need brackets in your expression for P#V2. I am not exactly sure where the bracket need to go, I am still new to macro programming myself. Also in my work so far with macro variables, so far I use #2 to address macro variable number 2, not #V2. you may want to check that, although I am not working on a Fadal so that system may be different.



Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


About CNCzone.com

    We are the largest and most active discussion forum for manufacturing industry. The site is 100% free to join and use, so join today!

Follow us on


Our Brands

Subroutine Callout with Macro Variable

Subroutine Callout with Macro Variable